<ion-modal-view class=" adddiscount_goodslist bg" ng-class='baseclass'>
	<ion-header-bar>
		<div class="buttons">
			<button class="button button-clear font-large-my" on-tap="closeModal()"><i class="icon ion-ios-arrow-back"></i></button>
		</div>
		<h1 class="title light">选择商品</h1>
		<div class="buttons">
			<button class="button button-clear font-large-my" on-tap="closeModal_goodsList()">确定</button>
		</div>
	</ion-header-bar>
	<ion-content class="bg" ng-style="myObj">
		<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
		<div class="item padding-0 bg_white">
			<div class="item-input padding-0 searchframe ">
				<input type="text" placeholder="请输入商品名" ng-model="input.key" />
				<img src="./img/guilin/other/searchIcon.png" on-tap="init_goodsList()" />
			</div>
		</div>
		<div class="list">
			<div class="item item-input padding-0 margin-bottom-1 shopframe" ng-repeat="g in goods" on-tap="selectgoods($index)">
				<img class="selectimg" src="./img/guilin/common/icon_checked_b@2x.png" ng-if="g.isSelected" />
				<img class="selectimg" src="./img/guilin/common/icon_uncheck_b@2x.png" ng-if="!g.isSelected" />
				<img class="shopimg" src="{{g.image.url}}" />
				<div class="shoptextfrmae">
					<p class="shopname">{{g.name}} </p>
				<!--	<p class="goodsid">商品编号：{{g.goods_id}} </p>-->
					<p class="goodsid padding-0"><span class="goodsmktprice">{{g.mktprice|currency:"￥"}}</span></p>
				</div>
			</div>
		</div>
		<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
	</ion-content>

	<div class="bar bar-footer footframe" >
		<div class="item-input padding-0" on-tap="selectAll()">
			<img class="selectimg" src="./img/guilin/common/icon_checked_b@2x.png" ng-if="slctall" />
			<img class="selectimg" src="./img/guilin/common/icon_uncheck_b@2x.png" ng-if="!slctall" /> 全选/反选
		</div>

	</div>
</ion-modal-view>